import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProdProductListComponent } from './product-list/product-list.component';
import { AuthGuardService } from '@core/auth/auth-guard.service';
import { ProductAddComponent } from 'app/routes/prod/product-list/edit/product-add.component';
import { ProductViewEditComponent } from 'app/routes/prod/product-list/edit/product-edit.component';
import { GoodsImgUploadComponent } from './goods-upload/goods-img-upload.component';

const routes: Routes = [
  { 
    path: 'product',     
    children: [
      { path: '', component: ProdProductListComponent },
      { path: 'add', component: ProductAddComponent },
      { path: 'edit/:id', component: ProductViewEditComponent },   
      { path: 'upload', component: GoodsImgUploadComponent}              
    ] 
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ProdRoutingModule { }
